package com.jungle.app.domain.entity;


import com.jungle.common.core.domain.BaseEntity;
import lombok.Data;
import org.hibernate.annotations.Comment;
import org.hibernate.annotations.SQLDelete;
import org.hibernate.annotations.Where;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

@Data
@Entity
@Table(name ="jw_scenic_spot")
@org.hibernate.annotations.Table(appliesTo = "jw_scenic_spot", comment = "景点信息表")
@Where(clause = "deleted is null or deleted != true")
@SQLDelete(sql = "update jw_scenic_spot set deleted = true where id = ? ")
public class JwScenicSpot extends BaseEntity {
    @Column(name = "name")
    @Comment("名称")
    private String name;
    @Column(name = "location")
    @Comment("详细地址")
    private String location;
    @Column(name = "description")
    @Comment("景点描述")
    private String description;
    @Column(name = "img_id")
    @Comment("图片id")
    private String imageId;
}
